package com.jeff.rps;

import java.util.Iterator;
import java.util.Vector;

public class GameHistory implements Iterable<Round>
{
  private final Vector<Round> rounds;

  public GameHistory(Vector<Round> rounds)
  {
    this.rounds = rounds;
  }

  public Round getRound(int index)
  {
    return rounds.get(index);
  }

  public int getNumRounds()
  {
    return rounds.size();
  }

  public Iterator<Round> iterator()
  {
    return rounds.iterator();
  }

}
